package cn.iot.sys.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 闸机规则类
 */
@Data
@TableName("t_sys_rule")
public class SysRule implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private int id;
    @TableField("code")
    private int code;
    @TableField("name")
    private String name;
    @TableField("status")
    private int status;
    @TableField("deviceCode")
    private String deviceCode;
//    @TableField("description")
//    private String description;
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    @TableField("create_Date")
    private Date createDate;
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    @TableField("modify_Date")
    private Date modifyDate;
    @TableField("week1")
    private String week1;
    @TableField("week2")
    private String week2;
    @TableField("week3")
    private String week3;
    @TableField("week4")
    private String week4;
    @TableField("week5")
    private String week5;
    @TableField("week6")
    private String week6;
    @TableField("week7")
    private String week7;
    @TableField(exist = false)
    private String deviceName;
    @TableField("isDel")
    private int isDel;
}
